package com.liujit.upms.domain.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @Description 系统日志
 * @Author liujun
 * @Date 2021-06-23 22:53:29
 */
@Data
@ApiModel(value = "SysLog", description = "系统日志")
@TableName(value = "sys_log")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public class SysLog {

    @ApiModelProperty(value = "主键id")
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty(value = "客户端id")
    private String clientId;

    @ApiModelProperty(value = "服务id")
    private String serviceId;

    @ApiModelProperty(value = "操作人id")
    private Long userId;

    @ApiModelProperty(value = "操作人账号")
    private String account;

    @ApiModelProperty(value = "操作描述")
    private String description;

    @ApiModelProperty(value = "唯一访问码")
    private String visitCode;

    @ApiModelProperty(value = "操作ip")
    private String ip;

    @ApiModelProperty(value = "操作地点")
    private String location;

    @ApiModelProperty(value = "浏览器")
    private String browser;

    @ApiModelProperty(value = "操作系统")
    private String os;

    @ApiModelProperty(value = "请求地址")
    private String reqUrl;

    @ApiModelProperty(value = "请求方式")
    private String reqMethod;

    @ApiModelProperty(value = "请求参数")
    private String reqParam;

    @ApiModelProperty(value = "请求时间")
    private Date reqTime;

    @ApiModelProperty(value = "响应Code")
    private Integer respCode;

    @ApiModelProperty(value = "响应信息")
    private String respMsg;

    @ApiModelProperty(value = "响应内容")
    private String respData;

    @ApiModelProperty(value = "响应时间")
    private Date respTime;

    @ApiModelProperty(value = "耗时（单位：毫秒）")
    private Long useTime;
}